# -*- coding: utf-8 -*-
'''
@author: Hugo
@file: urls.py
@time: 2021/11/18 17:08
'''
from django.urls import path
from apps.users import views

from utils.converters import UsernameConverter
from django.urls import register_converter
from utils.converters import MobileConverter

# 注册转换器
register_converter(UsernameConverter,'username')
register_converter(MobileConverter,'mobile')

urlpatterns = [
    path('usernames/<username:username>/count/',views.UsernameCountView.as_view()),
    path('mobiles/<mobile>/count/',views.MobileCountView.as_view()),
    path('register/',views.RegisterView.as_view())
]